package com.yang.zngcxyxkjs.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class LoginLog {

    private String loginAccount;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date loginTime;

    public LoginLog() {
    }

    public LoginLog(String loginAccount, Date loginTime) {
        this.loginAccount = loginAccount;
        this.loginTime = loginTime;
    }

    public String getLoginAccount() {
        return loginAccount;
    }

    public void setLoginAccount(String loginAccount) {
        this.loginAccount = loginAccount;
    }

    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }

    @Override
    public String toString() {
        return "LoginLog{" +
                "loginAccount='" + loginAccount + '\'' +
                ", loginTime=" + loginTime +
                '}';
    }
}
